home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / ufo_comm.swf / scripts / frame_143 / DoAction.as
Encoding:
Text File  |  2007-04-25  |  21.6 KB  |  627 lines

  1. var ┬º\x01┬º = 451;
  2. loop0:
  3. while(true)
  4. {
  5.    if(eval("\x01") == 451)
  6.    {
  7.       set("\x01",eval("\x01") - 155);
  8.       ┬º┬ºpush(true);
  9.       continue;
  10.    }
  11.    if(eval("\x01") == 550)
  12.    {
  13.       set("\x01",eval("\x01") + 265);
  14.       if(┬º┬ºpop())
  15.       {
  16.          set("\x01",eval("\x01") - 397);
  17.       }
  18.       continue;
  19.    }
  20.    if(eval("\x01") == 707)
  21.    {
  22.       set("\x01",eval("\x01") - 686);
  23.       eval(┬º┬ºpop()) implements ;
  24.       break;
  25.    }
  26.    if(eval("\x01") == 296)
  27.    {
  28.       set("\x01",eval("\x01") - 60);
  29.       if(┬º┬ºpop())
  30.       {
  31.          set("\x01",eval("\x01") - 148);
  32.       }
  33.       continue;
  34.    }
  35.    if(eval("\x01") == 281)
  36.    {
  37.       set("\x01",eval("\x01") - 217);
  38.       if(┬º┬ºpop())
  39.       {
  40.          set("\x01",eval("\x01") + 33);
  41.       }
  42.       continue;
  43.    }
  44.    if(eval("\x01") == 64)
  45.    {
  46.       set("\x01",eval("\x01") + 33);
  47.       break;
  48.    }
  49.    if(eval("\x01") == 815)
  50.    {
  51.       set("\x01",eval("\x01") - 397);
  52.       break;
  53.    }
  54.    if(eval("\x01") == 24)
  55.    {
  56.       set("\x01",eval("\x01") + 526);
  57.       ┬º┬ºpush(true);
  58.       continue;
  59.    }
  60.    if(eval("\x01") != 658)
  61.    {
  62.       if(eval("\x01") == 745)
  63.       {
  64.          set("\x01",eval("\x01") - 417);
  65.          if(┬º┬ºpop())
  66.          {
  67.             set("\x01",eval("\x01") + 581);
  68.          }
  69.       }
  70.       else if(eval("\x01") == 97)
  71.       {
  72.          set("\x01",eval("\x01") + 125);
  73.          ┬º┬ºpush(true);
  74.       }
  75.       else if(eval("\x01") == 210)
  76.       {
  77.          set("\x01",eval("\x01") + 383);
  78.          ┬º┬ºpush(true);
  79.       }
  80.       else
  81.       {
  82.          if(eval("\x01") == 236)
  83.          {
  84.             set("\x01",eval("\x01") - 148);
  85.             ┬º┬ºpush(┬º┬ºpop() + ┬º┬ºpop());
  86.             break;
  87.          }
  88.          if(eval("\x01") == 223)
  89.          {
  90.             set("\x01",eval("\x01") - 38);
  91.             ┬º┬ºpush(true);
  92.          }
  93.          else if(eval("\x01") == 706)
  94.          {
  95.             set("\x01",eval("\x01") + 39);
  96.             ┬º┬ºpush(true);
  97.          }
  98.          else if(eval("\x01") == 88)
  99.          {
  100.             set("\x01",eval("\x01") + 193);
  101.             ┬º┬ºpush(true);
  102.          }
  103.          else if(eval("\x01") == 418)
  104.          {
  105.             set("\x01",eval("\x01") + 186);
  106.             ┬º┬ºpush(true);
  107.          }
  108.          else
  109.          {
  110.             if(eval("\x01") == 328)
  111.             {
  112.                set("\x01",eval("\x01") + 581);
  113.                break;
  114.             }
  115.             if(eval("\x01") == 222)
  116.             {
  117.                set("\x01",eval("\x01") + 485);
  118.                if(┬º┬ºpop())
  119.                {
  120.                   set("\x01",eval("\x01") - 686);
  121.                }
  122.             }
  123.             else if(eval("\x01") == 909)
  124.             {
  125.                set("\x01",eval("\x01") - 813);
  126.                ┬º┬ºpush(true);
  127.             }
  128.             else if(eval("\x01") == 229)
  129.             {
  130.                set("\x01",eval("\x01") + 429);
  131.                if(┬º┬ºpop())
  132.                {
  133.                   set("\x01",eval("\x01") - 634);
  134.                }
  135.             }
  136.             else if(eval("\x01") == 21)
  137.             {
  138.                set("\x01",eval("\x01") + 208);
  139.                ┬º┬ºpush(true);
  140.             }
  141.             else if(eval("\x01") == 604)
  142.             {
  143.                set("\x01",eval("\x01") - 64);
  144.                if(┬º┬ºpop())
  145.                {
  146.                   set("\x01",eval("\x01") - 330);
  147.                }
  148.             }
  149.             else
  150.             {
  151.                if(eval("\x01") == 540)
  152.                {
  153.                   set("\x01",eval("\x01") - 330);
  154.                   break;
  155.                }
  156.                if(eval("\x01") == 96)
  157.                {
  158.                   set("\x01",eval("\x01") + 328);
  159.                   if(┬º┬ºpop())
  160.                   {
  161.                      set("\x01",eval("\x01") - 201);
  162.                   }
  163.                }
  164.                else if(eval("\x01") == 593)
  165.                {
  166.                   set("\x01",eval("\x01") - 324);
  167.                   if(┬º┬ºpop())
  168.                   {
  169.                      set("\x01",eval("\x01") + 437);
  170.                   }
  171.                }
  172.                else
  173.                {
  174.                   if(eval("\x01") != 185)
  175.                   {
  176.                      if(eval("\x01") == 984)
  177.                      {
  178.                         set("\x01",eval("\x01") - 406);
  179.                         _root.level = 1;
  180.                         _root.primaData = true;
  181.                         _root.ufo.swapDepths(999);
  182.                         _root.life = 100;
  183.                         _root.lifeBar.gotoAndStop(_root.life);
  184.                         _root.lifeText = _root.life + "%";
  185.                         _root.oiRapite = 0;
  186.                         _root.smokeDepth = 500;
  187.                         _root.speedX = 0;
  188.                         _root.speedY = 0.7;
  189.                         _root.accel = 1;
  190.                         _root.counterPozitii = 0;
  191.                         _root.beamCounter = 0;
  192.                         _root.beamOpen = false;
  193.                         _root.rotation = false;
  194.                         _root.float = false;
  195.                         h = 1;
  196.                         while(h <= 4)
  197.                         {
  198.                            _root.attachMovie("rosu" + h,"rosu" + h,_root.getNextHighestDepth());
  199.                            _root["rosu" + h]._alpha = 0;
  200.                            h++;
  201.                         }
  202.                         _root.onEnterFrame = function()
  203.                         {
  204.                            if(ok)
  205.                            {
  206.                               _root.lifeText = _root.life + "%";
  207.                               _root.ufo._x += _root.speedX;
  208.                               _root.ufo._y += _root.speedY;
  209.                               _root.rotatie = _root.ufo._rotation;
  210.                               if(Key.isDown(37))
  211.                               {
  212.                                  _root.rotation = false;
  213.                                  if(_root.speedX > -3)
  214.                                  {
  215.                                     if(_root.counterPozitii == 0)
  216.                                     {
  217.                                        _root.ufo.ufo2.ufo3.gotoAndPlay("apasatS");
  218.                                     }
  219.                                     _root.counterPozitii = 1;
  220.                                     _root.speedX -= _root.accel;
  221.                                     if(!_root.beamOpen && _root.ufo._rotation > -12)
  222.                                     {
  223.                                        _root.ufo._rotation -= 1;
  224.                                     }
  225.                                  }
  226.                               }
  227.                               if(Key.isDown(39))
  228.                               {
  229.                                  _root.rotation = false;
  230.                                  if(_root.speedX < 3)
  231.                                  {
  232.                                     if(_root.counterPozitii == 0)
  233.                                     {
  234.                                        _root.ufo.ufo2.ufo3.gotoAndPlay("apasatD");
  235.                                     }
  236.                                     _root.counterPozitii = 1;
  237.                                     _root.speedX += _root.accel;
  238.                                     if(_root.beamOpen == false && _root.ufo._rotation < 12)
  239.                                     {
  240.                                        _root.ufo._rotation += 1;
  241.                                     }
  242.                                  }
  243.                               }
  244.                               if(Key.isDown(38))
  245.                               {
  246.                                  if(_root.speedY > -3)
  247.                                  {
  248.                                     if(_root.counterPozitii == 0)
  249.                                     {
  250.                                        _root.ufo.ufo2.ufo3.gotoAndPlay("apasatSus");
  251.                                     }
  252.                                     _root.counterPozitii = 1;
  253.                                     _root.speedY -= _root.accel;
  254.                                  }
  255.                               }
  256.                               if(Key.isDown(40))
  257.                               {
  258.                                  if(_root.speedY < 3)
  259.                                  {
  260.                                     if(_root.counterPozitii == 0)
  261.                                     {
  262.                                        _root.ufo.ufo2.ufo3.gotoAndPlay("apasatJos");
  263.                                     }
  264.                                     _root.counterPozitii = 1;
  265.                                     _root.speedY += _root.accel;
  266.                                  }
  267.                               }
  268.                               if(Key.isDown(32))
  269.                               {
  270.                                  if(_root.ufo._rotation == 0)
  271.                                  {
  272.                                     if(_root.beamCounter == 0)
  273.                                     {
  274.                                        _root.ufo.raza.gotoAndPlay(2);
  275.                                        _root.beamCounter = 1;
  276.                                     }
  277.                                  }
  278.                               }
  279.                               if(_root.speedX < 0)
  280.                               {
  281.                                  if(_root.ufo._rotation < 0 && _root.rotation == true)
  282.                                  {
  283.                                     _root.ufo._rotation = _root.ufo._rotation + 1;
  284.                                  }
  285.                                  _root.speedX += 0.2;
  286.                                  if(_root.speedX >= 0)
  287.                                  {
  288.                                     _root.speedX = 0;
  289.                                     _root.ufo.ufo2.ufo3.gotoAndStop(1);
  290.                                     _root.ufo._rotation = 0;
  291.                                  }
  292.                               }
  293.                               if(_root.speedX > 0)
  294.                               {
  295.                                  if(_root.ufo._rotation > 0 && _root.rotation == true)
  296.                                  {
  297.                                     _root.ufo._rotation--;
  298.                                  }
  299.                                  _root.speedX -= 0.2;
  300.                                  if(_root.speedX <= 0)
  301.                                  {
  302.                                     _root.speedX = 0;
  303.                                     _root.ufo.ufo2.ufo3.gotoAndStop(1);
  304.                                     _root.ufo._rotation = 0;
  305.                                  }
  306.                               }
  307.                               if(_root.speedY < 0)
  308.                               {
  309.                                  _root.speedY += 0.2;
  310.                                  if(_root.speedY >= 0)
  311.                                  {
  312.                                     _root.speedY = 0.7;
  313.                                  }
  314.                               }
  315.                            }
  316.                            else
  317.                            {
  318.                               _root.ufo._y -= 5;
  319.                               _root.ufo._alpha -= 5;
  320.                            }
  321.                         };
  322.                         if(_root.primaData)
  323.                         {
  324.                            _root.attachMovie("d" + _root.level,"d" + _root.level,93);
  325.                         }
  326.                         _root.d1._x = 405;
  327.                         _root.d1._y = 257;
  328.                         _root["d" + _root.level]._x = 405;
  329.                         _root["d" + _root.level]._y = 257;
  330.                         _root.removeArray = new Array();
  331.                         _root.removeArray = ["o1","o2","o3","ufo","poarta"];
  332.                         _root.semneArray = new Array();
  333.                         _root.semneArray = ["!","?","*","#"];
  334.                         _root.starArray = new Array();
  335.                         _root.starArray = ["s4","s4","s4","s4"];
  336.                         listener = new Object();
  337.                         listener.onKeyUp = function()
  338.                         {
  339.                            if(Key.getCode() == 37 || Key.getCode() == 38 || Key.getCode() == 39 || Key.getCode() == 40)
  340.                            {
  341.                               _root.ufo.ufo2.ufo3.play();
  342.                               _root.counterPozitii = 0;
  343.                               _root.rotation = true;
  344.                            }
  345.                            if(Key.getCode() == 32)
  346.                            {
  347.                               _root.ufo.raza.play();
  348.                            }
  349.                         };
  350.                         Key.addListener(listener);
  351.                         _root.oiCounter = 30;
  352.                         _root.smokeCounter = 3500;
  353.                         _root.starCounter = 3000;
  354.                         _root.oiTarget = 2;
  355.                         _root.oiPeScena = 2;
  356.                         stop();
  357.                         break;
  358.                      }
  359.                      if(eval("\x01") == 269)
  360.                      {
  361.                         set("\x01",eval("\x01") + 437);
  362.                         break;
  363.                      }
  364.                      if(eval("\x01") == 424)
  365.                      {
  366.                         set("\x01",eval("\x01") - 201);
  367.                         break;
  368.                      }
  369.                      if(eval("\x01") == 63)
  370.                      {
  371.                         set("\x01",eval("\x01") + 921);
  372.                         ┬º┬ºpush(┬º┬ºpop() * (┬º┬ºpop() + 1));
  373.                         loop3:
  374.                         while(true)
  375.                         {
  376.                            while(true)
  377.                            {
  378.                               if(eval("\x01") == 793)
  379.                               {
  380.                                  set("\x01",eval("\x01") - 139);
  381.                                  ┬º┬ºpush(true);
  382.                               }
  383.                               else
  384.                               {
  385.                                  if(eval("\x01") == 654)
  386.                                  {
  387.                                     break;
  388.                                  }
  389.                                  if(eval("\x01") == 640)
  390.                                  {
  391.                                     break loop3;
  392.                                  }
  393.                                  if(eval("\x01") == 920)
  394.                                  {
  395.                                     set("\x01",eval("\x01") + 13);
  396.                                     ┬º┬ºpush(true);
  397.                                  }
  398.                                  else
  399.                                  {
  400.                                     if(eval("\x01") == 692)
  401.                                     {
  402.                                        set("\x01",eval("\x01") - 358);
  403.                                        var _loc19_ = null;
  404.                                        ┬º┬ºpush(_loc19_ = ┬º┬ºpop()());
  405.                                        break loop0;
  406.                                     }
  407.                                     if(eval("\x01") != 933)
  408.                                     {
  409.                                        if(eval("\x01") == 334)
  410.                                        {
  411.                                           set("\x01",eval("\x01") + 616);
  412.                                           _root.inst._visible = false;
  413.                                           break loop0;
  414.                                        }
  415.                                        if(eval("\x01") == 950)
  416.                                        {
  417.                                           set("\x01",eval("\x01") - 950);
  418.                                        }
  419.                                        break loop0;
  420.                                     }
  421.                                     set("\x01",eval("\x01") - 241);
  422.                                     if(┬º┬ºpop())
  423.                                     {
  424.                                        set("\x01",eval("\x01") - 358);
  425.                                     }
  426.                                  }
  427.                               }
  428.                            }
  429.                            set("\x01",eval("\x01") - 14);
  430.                            if(┬º┬ºpop())
  431.                            {
  432.                               set("\x01",eval("\x01") + 280);
  433.                            }
  434.                         }
  435.                         set("\x01",eval("\x01") + 280);
  436.                         break;
  437.                      }
  438.                      if(eval("\x01") == 578)
  439.                      {
  440.                         set("\x01",eval("\x01") - 578);
  441.                      }
  442.                      break;
  443.                   }
  444.                   set("\x01",eval("\x01") - 122);
  445.                   if(┬º┬ºpop())
  446.                   {
  447.                      set("\x01",eval("\x01") + 921);
  448.                   }
  449.                }
  450.             }
  451.          }
  452.       }
  453.       continue;
  454.    }
  455.    set("\x01",eval("\x01") - 634);
  456.    while(true)
  457.    {
  458.       if(┬º┬ºpop() == ┬º┬ºpop())
  459.       {
  460.          set("\x01",eval("\x01") - 370);
  461.          if(┬º┬ºpop())
  462.          {
  463.             set("\x01",eval("\x01") + 758);
  464.          }
  465.       }
  466.       else
  467.       {
  468.          if(eval("\x01") == 210)
  469.          {
  470.             set("\x01",eval("\x01") + 758);
  471.             ┬º┬ºpush(String(┬º┬ºpop() >>> new ┬º┬ºpop()[┬º┬ºpop()]()));
  472.             break loop0;
  473.          }
  474.          if(eval("\x01") == 630)
  475.          {
  476.             set("\x01",eval("\x01") + 150);
  477.             v = random(3) + 1;
  478.             _root["behe" + v].start(0,1);
  479.             break loop0;
  480.          }
  481.          if(eval("\x01") == 139)
  482.          {
  483.             set("\x01",eval("\x01") + 530);
  484.             if(┬º┬ºpop())
  485.             {
  486.                set("\x01",eval("\x01") - 104);
  487.             }
  488.          }
  489.          else
  490.          {
  491.             if(eval("\x01") == 780)
  492.             {
  493.                set("\x01",eval("\x01") - 780);
  494.                break loop0;
  495.             }
  496.             if(eval("\x01") == 669)
  497.             {
  498.                set("\x01",eval("\x01") - 104);
  499.                var ┬º┬ºpop();
  500.                ┬º┬ºpush(┬º┬ºpop()[┬º┬ºpop()(┬º┬ºpop())]);
  501.                break loop0;
  502.             }
  503.             if(eval("\x01") == 120)
  504.             {
  505.                set("\x01",eval("\x01") + 550);
  506.                if(┬º┬ºpop())
  507.                {
  508.                   set("\x01",eval("\x01") + 294);
  509.                }
  510.             }
  511.             else if(eval("\x01") == 964)
  512.             {
  513.                set("\x01",eval("\x01") - 825);
  514.                ┬º┬ºpush(true);
  515.             }
  516.             else if(eval("\x01") == 640)
  517.             {
  518.                set("\x01",eval("\x01") + 283);
  519.                if(┬º┬ºpop())
  520.                {
  521.                   set("\x01",eval("\x01") - 177);
  522.                }
  523.             }
  524.             else
  525.             {
  526.                if(eval("\x01") != 968)
  527.                {
  528.                   break loop0;
  529.                }
  530.                set("\x01",eval("\x01") - 328);
  531.                ┬º┬ºpush(true);
  532.             }
  533.          }
  534.       }
  535.       while(true)
  536.       {
  537.          if(eval("\x01") == 842)
  538.          {
  539.             set("\x01",eval("\x01") - 840);
  540.             ┬º┬ºpush(true);
  541.          }
  542.          else if(eval("\x01") == 769)
  543.          {
  544.             set("\x01",eval("\x01") - 489);
  545.             if(┬º┬ºpop())
  546.             {
  547.                set("\x01",eval("\x01") + 350);
  548.             }
  549.          }
  550.          else
  551.          {
  552.             if(eval("\x01") == 280)
  553.             {
  554.                set("\x01",eval("\x01") + 350);
  555.                ┬º┬ºpush(┬º┬ºpop() === ┬º┬ºpop());
  556.                break loop0;
  557.             }
  558.             if(eval("\x01") == 456)
  559.             {
  560.                set("\x01",eval("\x01") - 63);
  561.                ┬º┬ºpush(┬º┬ºpop() / (┬º┬ºpop() and ┬º┬ºpop()));
  562.                break loop0;
  563.             }
  564.             if(eval("\x01") == 369)
  565.             {
  566.                set("\x01",eval("\x01") + 362);
  567.                if(┬º┬ºpop())
  568.                {
  569.                   set("\x01",eval("\x01") - 593);
  570.                }
  571.             }
  572.             else if(eval("\x01") == 746)
  573.             {
  574.                set("\x01",eval("\x01") - 626);
  575.                ┬º┬ºpush(true);
  576.             }
  577.             else
  578.             {
  579.                if(eval("\x01") == 923)
  580.                {
  581.                   set("\x01",eval("\x01") - 177);
  582.                   break loop0;
  583.                }
  584.                if(eval("\x01") == 670)
  585.                {
  586.                   set("\x01",eval("\x01") + 294);
  587.                   stop();
  588.                   break loop0;
  589.                }
  590.                if(eval("\x01") == 731)
  591.                {
  592.                   set("\x01",eval("\x01") - 593);
  593.                   break loop0;
  594.                }
  595.                if(eval("\x01") == 2)
  596.                {
  597.                   set("\x01",eval("\x01") + 454);
  598.                   if(┬º┬ºpop())
  599.                   {
  600.                      set("\x01",eval("\x01") - 63);
  601.                   }
  602.                }
  603.                else if(eval("\x01") == 393)
  604.                {
  605.                   set("\x01",eval("\x01") + 187);
  606.                   ┬º┬ºpush(true);
  607.                }
  608.                else if(eval("\x01") == 138)
  609.                {
  610.                   set("\x01",eval("\x01") + 631);
  611.                   ┬º┬ºpush(true);
  612.                }
  613.                else
  614.                {
  615.                   if(eval("\x01") != 565)
  616.                   {
  617.                      break;
  618.                   }
  619.                   set("\x01",eval("\x01") - 196);
  620.                   ┬º┬ºpush(true);
  621.                }
  622.             }
  623.          }
  624.       }
  625.    }
  626. }
  627.